package com.evil.application.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 应用组表
 *
 * @author liyang
 * @date 2023-02-15 16:03
 */
@Data
@TableName(value = "evil_application_group")
public class ApplicationGroup implements Serializable {

    /**
     * id
     */
    @TableId(value = "application_group_id", type = IdType.AUTO)
    private Long applicationGroupId;

    /**
     * 企业id
     */
    @TableField(value = "enterprise_id")
    private Long enterpriseId;

    /**
     * 应用组名称
     */
    @TableField(value = "group_name")
    private String groupName;

    /**
     * icon
     */
    @TableField(value = "icon")
    private Long icon;

    /**
     * 排序 越小越靠前
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 状态(0:禁用, 1:开启)
     */
    @TableField(value = "is_enable")
    private Integer isEnable;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 是否已删除(0:否, 1:是)
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 创建人
     */
    @TableField(value = "creator_id")
    private Long creatorId;

    /**
     * 创建人名字
     */
    @TableField(value = "creator_name")
    private String creatorName;

    /**
     * 修改操作人
     */
    @TableField(value = "modifier_id")
    private Long modifierId;

    /**
     * 修改操作人名字
     */
    @TableField(value = "modifier_name")
    private String modifierName;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 更新时间
     */
    @TableField(value = "updated")
    private Date updated;

    private static final long serialVersionUID = 1L;

    public static final String COL_APPLICATION_GROUP_ID = "application_group_id";

    public static final String COL_ENTERPRISE_ID = "enterprise_id";

    public static final String COL_GROUP_NAME = "group_name";

    public static final String COL_ICON = "icon";

    public static final String COL_SORT = "sort";

    public static final String COL_IS_ENABLE = "is_enable";

    public static final String COL_REMARK = "remark";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR_NAME = "creator_name";

    public static final String COL_MODIFIER_ID = "modifier_id";

    public static final String COL_MODIFIER_NAME = "modifier_name";

    public static final String COL_CREATED = "created";

    public static final String COL_UPDATED = "updated";
}